﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace VikingArcade_v2._0
{
    public class UserInterfaceDrawer : IDrawer
    {
        private UserInterface userInterface;

        public UserInterfaceDrawer(UserInterface userInterface)
        {
            this.userInterface = userInterface;
        }

        #region IDrawer Members

        public void Draw(SpriteBatch spriteBatch)
        {
            foreach (UserInterfaceControl control in userInterface.Controls)
            {
                control.GetDrawer().Draw(spriteBatch);
            }
        }

        #endregion
    }
}
